package com.kaifamiao.demo.d0727test;

import com.kaifamiao.demo.d0727.pm.Person;

public class Student extends Person {


    public static void main(String[] args) {
        Student stu = new Student();

        stu.name = "张三"; // public
        stu.publicMehtod(); // public
        stu.age = 18; // protected
        stu.protectedMehtod(); // protected
//        stu.hobby = "女"; // package-access
//        stu.packageAccessMethod(); // package-access

//        stu.money = -1000; // private
//        stu.privateMethod(); // private
    }
}
